#
#devdoer@gmail.com
#
from anole.utils.patterns.Singleton import Singleton
from anole import NotImpError
class CheckPointManager:
#class CheckPointManager(Singleton):
	def __init__(self):
		self._chks=[]
	def reg(self,checker):
		self._chks.append(checker)
	def save(self):
		
		for checker in self._chks:
			#if checker.taskName==taskName:
			checker.save()
	def load(self):
		for checker in self._chks:
			checker.load()
class ICheckable(object):
	
	def save(self):
		raise NotImpError(self,'save')
	def load(self):
		raise NotImpError(self,'load')
